package net.uhuijia.zb.userzhubolivegood.service;

import net.uhuijia.appbase.service.BaseService;
import net.uhuijia.vo.good.GoodZBListVo;
import net.uhuijia.vo.zb.OnlineLiveGoodVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import net.uhuijia.appbase.service.CrudService;
import net.uhuijia.zb.userzhubolivegood.persistence.dao.UserZhuboLiveGoodDao;
import net.uhuijia.zb.userzhubolivegood.persistence.model.UserZhuboLiveGood;
import net.uhuijia.zb.userzhubolivegood.persistence.model.UserZhuboLiveGoodExample;

import java.util.List;


@Service
@Transactional
public interface UserZhuboLiveGoodService
     extends BaseService<UserZhuboLiveGood,UserZhuboLiveGoodExample> {

    /**
     * 直播间右侧商品列表
     * @param liveId
     * @param example
     * @return
     */
    List<GoodZBListVo> onlineLiveGoodList(String liveId, UserZhuboLiveGoodExample example);

    /**
     * 分页查询主播正在直播的商品列表
     * @param liveId  直播Id
     * @param example 分页的example
     * @return
     */
    List<UserZhuboLiveGood> findUserZhuboLiveGoodByLiveIdAndPage(String liveId,UserZhuboLiveGoodExample example);

    /**
     * 查询直播间一共商品件事
     * @param liveId
     * @return
     */
    int findUserZhuboLiveGoodCountByLiveIdAndPage(String liveId);
}